package com.qqt.csr.route.assembler;

import com.qqt.csr.route.dto.req.CreatingRouteTaskDTO;
import com.qqt.csr.route.dto.resp.RouteTaskDTO;
import com.qqt.csr.route.entity.RouteTask;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface RouteTaskAssembler {
    RouteTaskAssembler INSTANCE = Mappers.getMapper(RouteTaskAssembler.class);

    RouteTask toRouteTask(CreatingRouteTaskDTO creatingRouteTaskDTO);

    RouteTaskDTO toRouteTaskDTO(RouteTask routeTask);
}
